package com.example.zhunongzonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("zn_exchange_post")
public class ZnExchangePost implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 交流中心：帖子表
     */
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postId;

    /**
     * 帖子标题
     */
    @TableField("post_name")
    private String postName;

    /**
     * 帖子内容
     */
    @TableField("post_content")
    private String postContent;

    /**
     * 内容图片
     */
    @TableField("content_cover")
    private String contentCover;

    /**
     * 发帖人
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 审核状态：0为未通过，1为通过
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;


}
